﻿using System;

namespace Midas
{
    public class PlayerItems
    {
        public Result result { get; set; }

        public partial class Result
        {
            public int status { get; set; }
            public int num_backpack_slots { get; set; }
            public Item[] items { get; set; }
        }

        public class Item
        {
            public long id { get; set; }
            public long original_id { get; set; }
            public int defindex { get; set; }
            public int level { get; set; }
            public int quality { get; set; }
            public int inventory { get; set; }
            public int quantity { get; set; }
            public Equipped[] equipped { get; set; }
            public bool flag_cannot_trade { get; set; }
            public bool flag_cannot_craft { get; set; }
            public Attribute[] attributes { get; set; }
            public int style { get; set; }
            public string custom_name { get; set; }
            public string custom_desc { get; set; }
        }

        public partial class Equipped
        {
            public int _class { get; set; }
            public int slot { get; set; }
        }

        public partial class Attribute
        {
            public int defindex { get; set; }
            public object value { get; set; }
            public float float_value { get; set; }
            public bool is_output { get; set; }
            public int quantity { get; set; }
            public int itemdef { get; set; }
        }
    }
}